]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
9 years agoDefine externally accessible contants with 'var' instead of 'const'
Florian Müllner [Tue, 18 Jul 2017 17:47:27 +0000 (19:47 +0200)]
Define externally accessible contants with 'var' instead of 'const'

Just as we did with classes, define other constants that are (or
may be) used from other modules with 'var' to cut down on warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=785084

9 years agoDefine classes with 'var' instead of 'const'
Florian Müllner [Tue, 18 Jul 2017 17:41:25 +0000 (19:41 +0200)]
Define classes with 'var' instead of 'const'

Any symbols (including class properties) that should be visible
outside the module it's defined in need to be defined as global.
For now gjs still allows the access for 'const', but get rid of
the warnings spill now by changing it.

https://bugzilla.gnome.org/show_bug.cgi?id=785084

9 years agomain: Define global properties with 'var' instead of 'let'
Florian Müllner [Tue, 18 Jul 2017 17:48:08 +0000 (19:48 +0200)]
main: Define global properties with 'var' instead of 'let'

Symbols that are defined with 'let' are no longer visible outside
the module that defines them. To unbreak the code base, define all
non-private properties as global.

https://bugzilla.gnome.org/show_bug.cgi?id=785084

9 years agoappDisplay: Define constant before using it
Florian Müllner [Tue, 18 Jul 2017 17:23:12 +0000 (19:23 +0200)]
appDisplay: Define constant before using it

This is now a fatal error with current gjs, however I wonder: Did this
ever work?

https://bugzilla.gnome.org/show_bug.cgi?id=785084

9 years agomessageTray: Use spread syntax to get map keys
Florian Müllner [Tue, 18 Jul 2017 17:20:42 +0000 (19:20 +0200)]
messageTray: Use spread syntax to get map keys

It wasn't supported when the code was originally written, now the
fill-in code isn't accepted anymore ...

https://bugzilla.gnome.org/show_bug.cgi?id=785084

9 years agoFix crash when using the magnifier
Joaquim Rocha [Mon, 17 Jul 2017 10:55:20 +0000 (12:55 +0200)]
Fix crash when using the magnifier

The first time that the session is started, it can happen that the
AT SPI hasn't been correctly initialized, and this results in a crash
when attempting to register the caret or focus listeners.

In order to avoid this, these changes check the result of initializing
the AT SPI, to allow further attempts when it has failed.

https://bugzilla.gnome.org/show_bug.cgi?id=785047

9 years agopadOsd: Disallow help/switch monitor actions on rings/strips
Carlos Garnacho [Wed, 12 Jul 2017 16:37:18 +0000 (18:37 +0200)]
padOsd: Disallow help/switch monitor actions on rings/strips

It does not make sense to map those actions to non-buttons. Set the
actions insensitive in the combobox to disallow this from the UI.

https://bugzilla.gnome.org/show_bug.cgi?id=782033

9 years agopadOsd: Implement edition of actions for rings/strips
Carlos Garnacho [Wed, 5 Jul 2017 22:05:22 +0000 (00:05 +0200)]
padOsd: Implement edition of actions for rings/strips

Customization of keycombo actions for strips/rings was lost in the
porting to new incarnation of Wacom support.

The UI here is slightly different, instead of requiring the user to
rotate/swipe in each direction to map each keycombo, the UI will
navigate the user through edition of both options, first one, then
the other.

https://bugzilla.gnome.org/show_bug.cgi?id=782033

9 years agoRemove excess parameter to g_app_info_launch()
Florian Müllner [Sat, 15 Jul 2017 01:42:06 +0000 (03:42 +0200)]
Remove excess parameter to g_app_info_launch()

Commit 39a840e2c3d added an additional parameter to shell_app_launch().
When adjusting callers, the parameter was also added accidentally to
calls of the confusingly similar g_app_info_launch() ...
Remove those to fix some warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoextensionSystem: Handle all initExtension() extension errors
Florian Müllner [Wed, 17 May 2017 22:03:28 +0000 (00:03 +0200)]
extensionSystem: Handle all initExtension() extension errors

The method currently catches errors that occur when calling the
extension's init() method, but throws itself an error if the
expected extension.js file is missing. The former is pointless
if we expect all callers to handle errors themselves anyway, and
we should avoid the latter if we don't - opt for the second option
and handle a missing extension.js file gracefully.

https://bugzilla.gnome.org/show_bug.cgi?id=781728

9 years agoextensionSystem: Catch import errors
Florian Müllner [Wed, 17 May 2017 21:57:18 +0000 (23:57 +0200)]
extensionSystem: Catch import errors

While we catch errors that occur when calling init(), enable() or
disable(), the import itself can throw an exception, for instance
if the extension imports an unavailable typelib or tries to draw
in a conflicting library.

https://bugzilla.gnome.org/show_bug.cgi?id=781728

9 years agoextensions: Consistently handle createExtensionObject() errors
Florian Müllner [Wed, 17 May 2017 21:51:49 +0000 (23:51 +0200)]
extensions: Consistently handle createExtensionObject() errors

The method may throw an error, for example when metadata.json is
missing or cannot be parsed, however we are currently not always
handling it.

https://bugzilla.gnome.org/show_bug.cgi?id=781728

9 years agoRevert "extensionSystem: handle reloading broken extensions"
Florian Müllner [Wed, 17 May 2017 21:27:37 +0000 (23:27 +0200)]
Revert "extensionSystem: handle reloading broken extensions"

Both reloadExtensions() and enableExtensions() are already expected
to catch extension errors. If they don't, this is the bug that
should be fixed instead of catching unhandled exceptions in the
caller.

This reverts commit ff425d1db7082e2755d2a405af53861552acf2a1.

https://bugzilla.gnome.org/show_bug.cgi?id=781728

9 years agoUpdate Friulian translation
Fabio Tomat [Mon, 17 Jul 2017 09:50:25 +0000 (09:50 +0000)]
Update Friulian translation

9 years agoUpdate Indonesian translation
Kukuh Syafaat [Mon, 17 Jul 2017 05:23:48 +0000 (05:23 +0000)]
Update Indonesian translation

9 years agopolkitAgent: Fix ReferenceError exception
Carlos Garnacho [Sun, 16 Jul 2017 19:24:30 +0000 (21:24 +0200)]
polkitAgent: Fix ReferenceError exception

Introduced in commit 593b4318a. The "message" variable was renamed
everywhere, except where it's defined.

9 years agoui: Implement "window doesn't respond" dialog on gnome-shell
Carlos Garnacho [Thu, 19 Jan 2017 18:52:18 +0000 (19:52 +0100)]
ui: Implement "window doesn't respond" dialog on gnome-shell

This does allow us to use ClutterActors instead of lousy legacy tools
meant for shell scripting.

https://bugzilla.gnome.org/show_bug.cgi?id=762083

9 years agoui: Use MessageDialogContent where appropriate
Florian Müllner [Sat, 15 Jul 2017 04:03:55 +0000 (06:03 +0200)]
ui: Use MessageDialogContent where appropriate

The gros of our ModalDialogs follow a UI pattern that matches the
newly added widget, so port them over to cut down on duplication.

https://bugzilla.gnome.org/show_bug.cgi?id=784985

9 years agoextensionDownloader: Don't reuse .prompt-* style classes
Florian Müllner [Sun, 16 Jul 2017 12:57:59 +0000 (14:57 +0200)]
extensionDownloader: Don't reuse .prompt-* style classes

Those will go away when we port authentication prompts to the new
MessageDialogContent widget, so pick the style classes from there
and adjust individual properties with more specific rules to re-
produce the existing style.

https://bugzilla.gnome.org/show_bug.cgi?id=784985

9 years agodialog: Add MessageDialogContent
Florian Müllner [Sat, 15 Jul 2017 03:12:57 +0000 (05:12 +0200)]
dialog: Add MessageDialogContent

A lot of our modal dialogs share a similar structure:

 [Icon]   Some title
          Maybe a subtitle

          And sometimes even a body for stuff like
          longer descriptions.

A dedicated widget with a common style will allow us to significantly
reduce duplication of both code and CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=784985

9 years agoshellMountOperation: Share a style class
Florian Müllner [Sat, 15 Jul 2017 06:53:34 +0000 (08:53 +0200)]
shellMountOperation: Share a style class

Two of the dialogs use virtually identical styles, so it makes sense
to reuse the actual style classes.

https://bugzilla.gnome.org/show_bug.cgi?id=784985

9 years agoui: Refactor modal dialog into separate Dialog class
Carlos Garnacho [Thu, 19 Jan 2017 18:49:52 +0000 (19:49 +0100)]
ui: Refactor modal dialog into separate Dialog class

This is the basic dialog actor implementation, which will allow us to
use the same implementation on the session-global modal dialogs. The
ModalDialog class now uses it underneath, and so do all users of it.

https://bugzilla.gnome.org/show_bug.cgi?id=762083

9 years agolayout: Allow adding already parented actors for chrome tracking
Carlos Garnacho [Fri, 14 Jul 2017 20:23:53 +0000 (22:23 +0200)]
layout: Allow adding already parented actors for chrome tracking

let trackChrome accept actors that are not children of chrome actors.
this will be useful for the MetaCloseDialog in gnome-shell, which
is already included in the MetaWindowGroup, but needs to be tracked
as chrome for the dialog to receive pointer events on X11.

https://bugzilla.gnome.org/show_bug.cgi?id=762083

9 years agoslider: Cache slider width for dragging handlers
Carlos Garnacho [Fri, 14 Jul 2017 23:24:40 +0000 (01:24 +0200)]
slider: Cache slider width for dragging handlers

The actor allocation will be invalid on CLUTTER_TOUCH_BEGIN, because
it comes together with a CLUTTER_ENTER event that will recalculate
styles, and queue a relayout in result.

The net result is that on CLUTTER_TOUCH_BEGIN, the relayout has been
already queued, so the slider width comes up as 0, and the value ends
up as 1. Later touch events already happen on a validated actor, so
it is corrected. Still, not fun when modifying the volume slider on a
touchscreen.

9 years agoshell-util: Fix a typo
Alessandro Bono [Fri, 14 Jul 2017 21:38:52 +0000 (23:38 +0200)]
shell-util: Fix a typo

9 years agognome-shell: Make search result description semitransparent
Rares Visalom [Thu, 13 Jul 2017 19:02:20 +0000 (22:02 +0300)]
gnome-shell: Make search result description semitransparent

There is a clear difference between the file name and its associated
description which the mockups clearly highlight. Consequently,
make the description label semitransparent, in order to emphasize
the file name, not the description itself.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Disable multiline descriptions
Rares Visalom [Sun, 9 Jul 2017 16:25:49 +0000 (19:25 +0300)]
search: Disable multiline descriptions

Having descriptions with multiple lines will clutter
the view and make it more confusing for the user. Apart
from that, it also makes the search result a lot bigger,
potentially losing general vertical alignment.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Highlight search terms in description
Rares Visalom [Tue, 27 Jun 2017 22:01:13 +0000 (01:01 +0300)]
search: Highlight search terms in description

The classes extending the SearchResult can now connect
to the 'terms-changed' signal emitted by the SearchResult
class. This signal enables each object to update its
internal description in order to apply the bold style
onto strings that match the search terms.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Propagate searchResults down the hierarchy
Rares Visalom [Tue, 27 Jun 2017 21:58:07 +0000 (00:58 +0300)]
search: Propagate searchResults down the hierarchy

In order to prepare for applying the bold style to the part
of the description that matches the search terms, we need
to listen for the signal that announces the fact that the
search terms have changed. Given the fact that the
SearchResults class is aware of the changes regarding the
search terms, the classes that extent SearchResult need
to have a reference to it in order to listen for the
to-be-implemented 'terms-changed' signal.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agoutil: Wrap g_regex_escape_string()
Florian Müllner [Fri, 23 Jun 2017 18:12:38 +0000 (20:12 +0200)]
util: Wrap g_regex_escape_string()

9 years agosearch: Increase maximum number of visible list search results
Rares Visalom [Fri, 23 Jun 2017 14:24:34 +0000 (17:24 +0300)]
search: Increase maximum number of visible list search results

Since results are now much more concise and take up less
space, we can use the 'saved' space to provide the user
with more search results for each provider.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agognome-shell: Use standard font size for the search-result-title class
Rares Visalom [Thu, 13 Jul 2017 19:01:09 +0000 (22:01 +0300)]
gnome-shell: Use standard font size for the search-result-title class

The current size of the text is way bigger than what
we want now. The default front size is what we are
looking after, therefore no explicit value is needed
to specify the font size.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agoseparator: Remove HorizontalSeparator
Rares Visalom [Thu, 13 Jul 2017 18:37:04 +0000 (21:37 +0300)]
separator: Remove HorizontalSeparator

It's now unused.

9 years agosearch: Replace the gradient separator with a simple line
Rares Visalom [Thu, 13 Jul 2017 18:34:47 +0000 (21:34 +0300)]
search: Replace the gradient separator with a simple line

The current separator uses a gradient effect as a separator
between search results. As the mockups suggest, the gradient
separator is no longer needed, in favor of a more simple one,
which is a thin semitransparent line.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Tweak the sizes of search results icons
Rares Visalom [Tue, 20 Jun 2017 19:21:20 +0000 (22:21 +0300)]
search: Tweak the sizes of search results icons

Just a small tweak of icon sizes, in order to make
them look like in the mockup.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Refactor providerIcon into providerInfo
Rares Visalom [Wed, 12 Jul 2017 23:51:59 +0000 (02:51 +0300)]
search: Refactor providerIcon into providerInfo

In order to match the current mockups, the providerIcon
class needed to include both the name of the provider
and the label that informs the user about how many more
search results are available for that specific provider.
The latter replaces the plus sign icon that has been
used so far.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agosearch: Make the results take more horizontal space
Rares Visalom [Tue, 20 Jun 2017 19:13:48 +0000 (22:13 +0300)]
search: Make the results take more horizontal space

In order to make gnome-shell search functionality fit on
smaller screens, like those of devices, search results
need to take advantage of more horizontal space so that
any extra space can be used efficiently.

In order to do so, change the layout of the ListSearchResult
class from a vertical one, to a horizontal one and also
decrease the padding of the list-search-result-content css
class.

https://bugzilla.gnome.org/show_bug.cgi?id=749957

9 years agopadOsd: strengthen ring/strip label creation
Carlos Garnacho [Wed, 12 Jul 2017 20:38:31 +0000 (22:38 +0200)]
padOsd: strengthen ring/strip label creation

If the padOsd is given a nonexistent ring/strip, things would fail
badly later when trying to paint a 0x0 StLabel. Just avoid creating
more ring/strip labels than those known by libwacom.

This is unlikely to happen, but seems better to protect against it.

https://bugzilla.gnome.org/show_bug.cgi?id=782033

9 years agopadOsd: Refactor function setting label after edition into separate function
Carlos Garnacho [Wed, 5 Jul 2017 22:03:12 +0000 (00:03 +0200)]
padOsd: Refactor function setting label after edition into separate function

https://bugzilla.gnome.org/show_bug.cgi?id=782033

9 years agoui: Reset workspace thumbnail porthole on monitor changes
Shih-Yuan Lee (FourDollars) [Fri, 9 Jun 2017 10:26:11 +0000 (18:26 +0800)]
ui: Reset workspace thumbnail porthole on monitor changes

The porthole will not be destroyed when the scale factor changed.
That makes workspace thumbnail porthole still wrong size in the first
seeing after the scale factor changed.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agoshell-util: ensure we've a valid n_captures when capturing images
Marco Trevisan (Treviño) [Thu, 8 Jun 2017 12:16:04 +0000 (20:16 +0800)]
shell-util: ensure we've a valid n_captures when capturing images

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agoshell-util: Fix capturing scaled views
Jonas Ådahl [Wed, 7 Jun 2017 06:53:25 +0000 (14:53 +0800)]
shell-util: Fix capturing scaled views

libmutter-clutter fixed stage capturing when views are scaled, and for
that to work properly when compositing the screenshot, we need to deal
with the cairo device scale here too.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agoshell-global: Don't set the clutter font DPI
Jonas Ådahl [Thu, 11 May 2017 04:22:27 +0000 (12:22 +0800)]
shell-global: Don't set the clutter font DPI

The clutter font DPI is managed by libmutter.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agoshell-global: Don't override the X11 window scale
Jonas Ådahl [Thu, 11 May 2017 04:21:16 +0000 (12:21 +0800)]
shell-global: Don't override the X11 window scale

It's already done by libmutter.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agost-icon: Remove unused fields
Jonas Ådahl [Thu, 4 May 2017 07:45:41 +0000 (15:45 +0800)]
st-icon: Remove unused fields

They were set but then never accessed.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

9 years agoshellDBus: Avoid access to undefined properties
Florian Müllner [Sat, 17 Jun 2017 16:31:34 +0000 (18:31 +0200)]
shellDBus: Avoid access to undefined properties

Don't rely on an implicit undefined value of unset parameters to
shut up some warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agodateMenu: Set _delegate on non-menu-item menu child
Florian Müllner [Sat, 17 Jun 2017 16:14:20 +0000 (18:14 +0200)]
dateMenu: Set _delegate on non-menu-item menu child

PopupMenu needs special-treatment of certain types of menu items,
which it determines via children's _delegate property. However as
the calendar drop-down is very unmenu-ish, we use regular actors
rather than PopupMenuItems and the missing _delegate property
triggers a warning. Just add it as the bare minimum to make
PopupMenu happy.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agonotificationDaemon: Avoid access to undefined property
Florian Müllner [Tue, 13 Jun 2017 04:49:07 +0000 (06:49 +0200)]
notificationDaemon: Avoid access to undefined property

Avoid a warning when assigning from an undefined property by making
sure to pass a proper null value instead.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agocalendar: Fix access to undefined property
Florian Müllner [Tue, 13 Jun 2017 04:41:08 +0000 (06:41 +0200)]
calendar: Fix access to undefined property

Don't call a parent method before chaining-up _init() to
avoid a warning about access to an undefined property.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agowindowManager: Fix a warning
Florian Müllner [Tue, 13 Jun 2017 03:51:31 +0000 (05:51 +0200)]
windowManager: Fix a warning

The destroy effect currently relies on a monkey-patched property
added from the map effect. However on X11 it is possible that we
did no map animation for a window that is destroyed when the shell
was restarted or had taken over from another WM. Just use the real
MetaWindow property to avoid a warning in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agolayout: Skip strut computation in the no-monitor case
Florian Müllner [Thu, 13 Jul 2017 13:53:04 +0000 (15:53 +0200)]
layout: Skip strut computation in the no-monitor case

It's possible for updateRegions() to be called before monitors have
been properly initialized. Instead of throwing an error in that case,
just skip the strut computation (that doesn't make sense anyway without
a monitor).

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agolayout: Range-check index before array lookup
Florian Müllner [Tue, 13 Jun 2017 03:39:06 +0000 (05:39 +0200)]
layout: Range-check index before array lookup

findMonitorForActor() may be called before the layoutManager gets
to initialize monitors, so make sure the monitor index is in range
to avoid a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoibusManager: Fix a warning
Florian Müllner [Tue, 13 Jun 2017 03:03:17 +0000 (05:03 +0200)]
ibusManager: Fix a warning

Don't try to access a non-existent engine - it probably makes sense to
use Map() instead of a plain object to track engines in the future, but
for now just add an additional check to shut up a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agohistory: Fix bogus return value
Florian Müllner [Tue, 13 Jun 2017 02:56:34 +0000 (04:56 +0200)]
history: Fix bogus return value

We only use lastItem() to reset the history index to the end, so
nobody noticed the utter nonsense in the return value until gjs
started to warn about it. As we don't actually use the value
anywhere, we could just remove it, but the function name implies
that an item is returned, so fix it to behave as advertised.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agopanel: Fix a JS warning
Florian Müllner [Tue, 13 Jun 2017 02:46:37 +0000 (04:46 +0200)]
panel: Fix a JS warning

We need to track the open-status of indicator menus, but don't want
to hook up signals more than once, so we check for the handler ID
we store on the object. As the property is only defined once we did
set up the signal connection, this check now logs a warning. We
can avoid it by checking for the existence of the property rather
than a particular value.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoremoteMenu: Add actionGroup accessor
Florian Müllner [Tue, 13 Jun 2017 02:17:39 +0000 (04:17 +0200)]
remoteMenu: Add actionGroup accessor

To avoid recreating the app menu unnecessarily, the panel checks
whether the menu's current actionGroup already matches the target
one. However as the menu's actionGroup property is currently private,
the test always fails, whoops.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agodash: Fix some JS warnings
Florian Müllner [Tue, 13 Jun 2017 01:41:42 +0000 (03:41 +0200)]
dash: Fix some JS warnings

We currently use "array[index]" to test whether an array has an
element at index before using it. However nowadays gjs warns about
accessing non-existent array elements, so the test itself already
produces a warning. Avoid this by checking the array length before
using an index to access an element.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoDon't use 'undefined' as boolean
Florian Müllner [Tue, 13 Jun 2017 04:49:07 +0000 (06:49 +0200)]
Don't use 'undefined' as boolean

Make sure we pass a proper false value instead of undefined to
avoid warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoInitialize properties in _init()
Florian Müllner [Tue, 13 Jun 2017 02:24:12 +0000 (04:24 +0200)]
Initialize properties in _init()

While we've always considered it good style to initialize JS properties,
some code that relies on uninitialized properties having an implicit
value of 'undefined' has slipped in over time. The updated SpiderMonkey
version used by gjs now warns when accessing those properties, so we
should make sure that they are properly initialized to avoid log spam,
even though all warnings addressed here occur in conditionals that
produce the correct result with 'undefined'.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agologinDialog: Only highlight a single item at any time
Florian Müllner [Fri, 9 Jun 2017 15:34:43 +0000 (17:34 +0200)]
loginDialog: Only highlight a single item at any time

The user list uses the same indication for hover and focus, so it
is possible for two items to be highlighted at the same time. Using
different styling would improve the situation, but only to some
extent - the user would still need to figure out which highlight
corresponds to which activation method. So instead, copy the
approach we use in popup menus and use a single property for
highlights that is updated by both focus- and hover changes.

https://bugzilla.gnome.org/show_bug.cgi?id=772284

9 years agovolume: Show OSD popup when changing volume via scroll
Florian Müllner [Fri, 9 Jun 2017 14:06:39 +0000 (16:06 +0200)]
volume: Show OSD popup when changing volume via scroll

It is possible to use the scroll wheel to adjust the volume without
opening the system menu, but there is no feedback other than the
icon itself in that case. To provide a less coarse indication for
the volume level, display the OSD window when adjusting the volume
while the slider isn't visible.

https://bugzilla.gnome.org/show_bug.cgi?id=781028

9 years agosystem: Emulate click action button release
Florian Müllner [Fri, 16 Jun 2017 15:08:07 +0000 (17:08 +0200)]
system: Emulate click action button release

Since commit 2c070d38, we add a ClickAction to the visible AltSwitcher
button to track long-presses. As a result, we now have two components
that will grab and ungrab the pointer for the button, so to make sure
we don't end up with a stuck grab, we need to release the second's
component grab when the first activates.

Currently we only drop the StButton grab on long-press, we also need
to cancel any initiated long-press on click.

https://bugzilla.gnome.org/show_bug.cgi?id=781738

9 years agoauthPrompt: allow empty response to PAM messages
Ray Strode [Wed, 14 Jun 2017 14:05:36 +0000 (10:05 -0400)]
authPrompt: allow empty response to PAM messages

Some PAM modules say "Press enter to continue" or
whatever.  We need to support them.

This commit allows empty responses to PAM questions,
but still requires a non-empty response for username.

https://bugzilla.gnome.org/show_bug.cgi?id=784360

9 years agogdmUtil: Fix auth prompt drawing over user list
Ray Strode [Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)]
gdmUtil: Fix auth prompt drawing over user list

If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by skipping a retry if
the operation is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=784361

9 years agoFix translation headers
Jeremy Bicha [Mon, 10 Jul 2017 12:01:08 +0000 (08:01 -0400)]
Fix translation headers

9 years agologinDialog: Disable user list when no user
Xiaoguang Wang [Fri, 7 Jul 2017 06:47:23 +0000 (14:47 +0800)]
loginDialog: Disable user list when no user

https://bugzilla.gnome.org/show_bug.cgi?id=731320

9 years agonotificationDaemon: Fix fallback icon names
Florian Müllner [Thu, 29 Jun 2017 23:11:53 +0000 (01:11 +0200)]
notificationDaemon: Fix fallback icon names

The gtk-dialog-* names are old and non-standard, and haven't been
provided by the default icon theme for quite a while ...

https://bugzilla.gnome.org/show_bug.cgi?id=784245

9 years agost: Don't try to create shadow for empty texture
Florian Müllner [Thu, 29 Jun 2017 22:06:53 +0000 (00:06 +0200)]
st: Don't try to create shadow for empty texture

Even though the API documentation doesn't say so, the underlying
Cogl texture of a ClutterTexture may be unset, so check for that
case to avoid a runtime warning.

https://bugzilla.gnome.org/show_bug.cgi?id=784353

9 years agopanel: Consider visibility changes for solid style
Florian Müllner [Tue, 20 Jun 2017 08:16:05 +0000 (10:16 +0200)]
panel: Consider visibility changes for solid style

We currently assume that window state changes are accompanied by an
allocation change (triggered for example by the minimize animation).
However this misses the case where a window actor is simply hidden
without any transition, as is the case with the 'show-desktop' action
for instance, so start tracking plain visibility changes as well.

https://bugzilla.gnome.org/show_bug.cgi?id=783975

9 years agoutil: Force text direction of time strings
Florian Müllner [Fri, 23 Jun 2017 15:37:13 +0000 (17:37 +0200)]
util: Force text direction of time strings

While the string returned by formatTime() should follow the locale's
text direction as a whole, the actual time part is always expected
to put hours on the left and minutes to the right. It is possible to
enforce that by inserting a left-to-right mark, but so far this is
only done by the Hebrew translation. So in order to not require all
other RTL translations to be fixed individually, just insert the
mark into the returned string ourselves like gnome-desktop's WallClock
code does[0].

[0] https://git.gnome.org/browse/gnome-desktop/tree/libgnome-desktop/gnome-wall-clock.c?h=gnome-3-24#n267

https://bugzilla.gnome.org/show_bug.cgi?id=784130

9 years agoauthPrompt: Remove stray tab character
Michael Catanzaro [Thu, 29 Jun 2017 23:16:11 +0000 (18:16 -0500)]
authPrompt: Remove stray tab character

9 years agoRevert "gdmUtil: Fix auth prompt drawing over user list"
Ray Strode [Wed, 28 Jun 2017 17:15:04 +0000 (13:15 -0400)]
Revert "gdmUtil: Fix auth prompt drawing over user list"

This reverts commit 875a1d61595a90cd62d5d7798f47caa32d297ab4.

(this was pushed accidentally, isn't the right patch, and lacks
 a bug reference)

9 years agoRevert "data: install process-working.svg to filesystem"
Ray Strode [Wed, 28 Jun 2017 17:03:25 +0000 (13:03 -0400)]
Revert "data: install process-working.svg to filesystem"

This reverts commit 0e922eee369cf12979df70927dc1f684f8dc9c16.

(this was pushed accidentally, and is meant to be a downstream
 only patch)

9 years agoauthPrompt: Reorder import
Michael Catanzaro [Wed, 28 Jun 2017 07:34:20 +0000 (02:34 -0500)]
authPrompt: Reorder import

5b339c83714fd173298a83227be7c83f7975fc6d put this in the wrong place.

9 years agoworkspace: Reset source IDs to zero after removing them
Mario Sanchez Prada [Tue, 27 Jun 2017 09:09:16 +0000 (10:09 +0100)]
workspace: Reset source IDs to zero after removing them

There were some source IDs that were not being reset to zero when
removing the associated sources, resulting on some critical errors
being dumped when _realRecalculateWindowPositions() got called
after that point, via _delayedWindowRepositioning().

9 years agoFix a typo
Michael Catanzaro [Mon, 26 Jun 2017 18:47:19 +0000 (13:47 -0500)]
Fix a typo

9 years agoobjectManager: handle proxies coming and going
Ray Strode [Fri, 7 Oct 2016 19:40:14 +0000 (15:40 -0400)]
objectManager: handle proxies coming and going

Ever since commit b8e29ae8c78658917c8a8ddd391667d7d9e36971
(I think), start up is littered with this message:

 Gjs-WARNING **: JS ERROR: could not get remote objects for service
 org.gnome.SettingsDaemon.Smartcard path

since gnome-shell is now started before gnome-settings-daemon.

This commit addresses the problem by making the object manager code
not try to autostart its proxy, and instead wait for it to appear.

https://bugzilla.gnome.org/show_bug.cgi?id=772589

9 years agoobjectManager: handle object manager sending empty array
Ray Strode [Wed, 14 Jun 2017 20:41:41 +0000 (16:41 -0400)]
objectManager: handle object manager sending empty array

If the service implementing the object manager returns
a 0 length array we currently throw an exception.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=780403

9 years agodata: install process-working.svg to filesystem
Ray Strode [Thu, 8 Jun 2017 16:04:31 +0000 (12:04 -0400)]
data: install process-working.svg to filesystem

This helps prevent unlock failure on inplace upgrades between
7.3 and 7.4

9 years agogdmUtil: Fix auth prompt drawing over user list
Ray Strode [Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)]
gdmUtil: Fix auth prompt drawing over user list

If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by guarding against the retry
if the fail counter is reset.

9 years agostyle: Fix nesting of elements
Florian Müllner [Wed, 21 Jun 2017 19:53:06 +0000 (21:53 +0200)]
style: Fix nesting of elements

.login-dialog-user-selection-box is the enclosing element, not between
.login-dialog-not-listed-button and .login-dialog-not-listed-label.

https://bugzilla.gnome.org/show_bug.cgi?id=784040

9 years agoBump version to 3.25.3
Florian Müllner [Wed, 21 Jun 2017 19:29:12 +0000 (21:29 +0200)]
Bump version to 3.25.3

Update NEWS.

9 years agobuild: Drop obsolete dist file
Florian Müllner [Wed, 21 Jun 2017 19:57:54 +0000 (21:57 +0200)]
build: Drop obsolete dist file

We no longer use ruby-sass.

9 years agocalendar-server: Specify the timezone for the view query
Sebastian Keller [Tue, 6 Jun 2017 20:32:55 +0000 (22:32 +0200)]
calendar-server: Specify the timezone for the view query

Otherwise UTC is used which results in a different interpretation of
floating time events. This then could lead to a mismatch with events
generated e_cal_client_generate_instances_sync() which always uses the
default timezone. Such a mismatch would then cause constant invalidation
and reloading.

https://bugzilla.gnome.org/show_bug.cgi?id=781950

9 years agoappDisplay: Add a null-check for the scrollview's fade ClutterEffect
Mario Sanchez Prada [Thu, 15 Jun 2017 11:43:58 +0000 (12:43 +0100)]
appDisplay: Add a null-check for the scrollview's fade ClutterEffect

This effect will only be created when the StScrollView actor has either
a non-zero vertical or horizontal fade offset defined, so we need to
add a null-check in these two cases before assuming it's there.

https://bugzilla.gnome.org/show_bug.cgi?id=783823

9 years agosessionMode: Drop unused import
Florian Müllner [Thu, 15 Jun 2017 13:48:36 +0000 (15:48 +0200)]
sessionMode: Drop unused import

9 years agotests/entry: add interactive tests for entry hints
Cosimo Cecchi [Wed, 7 Jun 2017 00:39:34 +0000 (17:39 -0700)]
tests/entry: add interactive tests for entry hints

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: Add support for a "hint actor"
Mario Sanchez Prada [Mon, 5 Jun 2017 17:36:41 +0000 (18:36 +0100)]
st-entry: Add support for a "hint actor"

This allows a full ClutterActor to be used as hint in the entry, instead
of a simple string.

The string case has been now re-implemented on top of the hint actor.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: don't possibly allocate actors a negative size
Cosimo Cecchi [Wed, 7 Jun 2017 00:56:17 +0000 (17:56 -0700)]
st-entry: don't possibly allocate actors a negative size

Clutter will complain about this, so protect the code against such edge
case.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agotests/entry: add text-shadow
Cosimo Cecchi [Tue, 6 Jun 2017 21:32:39 +0000 (14:32 -0700)]
tests/entry: add text-shadow

Also make the text larger and add an example string, since event
delivery does not seem to work properly under tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: Add support for the text-shadow CSS property
Mario Sanchez Prada [Mon, 5 Jun 2017 17:39:21 +0000 (18:39 +0100)]
st-entry: Add support for the text-shadow CSS property

It's supported everywhere else, we should also support it here.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agotests/entry: remove unused import
Cosimo Cecchi [Tue, 6 Jun 2017 21:31:19 +0000 (14:31 -0700)]
tests/entry: remove unused import

This is actually harmful, since it will drag a depepdency chain that
we're not able to satisfy from the tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-im-text: don't require st_im_text_set_event_window() to be called
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:55 +0000 (14:27 -0700)]
st-im-text: don't require st_im_text_set_event_window() to be called

Tests like tests/interactive/entry.js don't call it; make sure we still
display an entry in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: don't assume a cursor func has been set
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:18 +0000 (14:27 -0700)]
st-entry: don't assume a cursor func has been set

That won't be the case when called from tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost: initialize static variables to NULL
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:00 +0000 (14:27 -0700)]
st: initialize static variables to NULL

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agoautorunManager: Remove unused import
Florian Müllner [Fri, 9 Jun 2017 13:43:16 +0000 (15:43 +0200)]
autorunManager: Remove unused import

9 years agost-entry: remove unused variable
Cosimo Cecchi [Tue, 6 Jun 2017 21:52:33 +0000 (14:52 -0700)]
st-entry: remove unused variable

9 years agost-entry: Add primary-icon and secondary-icon read-write properties
Mario Sanchez Prada [Mon, 5 Jun 2017 17:43:27 +0000 (18:43 +0100)]
st-entry: Add primary-icon and secondary-icon read-write properties

Instead of simply providing a setter, we now provide real properties.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost: fix "text-shadow: none" to correctly draw no shadow
Matt Watson [Wed, 11 Mar 2015 00:25:38 +0000 (17:25 -0700)]
st: fix "text-shadow: none" to correctly draw no shadow

We would incorrectly create a solid black st-shadow with no blur when
parsing in a "none" value from css.

https://bugzilla.gnome.org/show_bug.cgi?id=783485

9 years agoRemove an explicit destroy to the ClutterText actor
Cosimo Cecchi [Tue, 27 Aug 2013 20:47:19 +0000 (13:47 -0700)]
Remove an explicit destroy to the ClutterText actor

This is the same as the previous commit, but for StEntry.
We don't have any need to explicitly destroy this actor in our dispose
implementation, and doing so breaks the assumption that we can access
the clutter_text from within destroy.

https://bugzilla.gnome.org/show_bug.cgi?id=783483